package com.heatup.apt.common.dao;


import com.baomidou.mybatisplus.mapper.AutoMapper;
import com.heatup.apt.model.course.CourseStandard;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 *
 * CourseStandard 表数据库控制层接口
 *
 */
@Component
public interface CourseStandardMapper extends AutoMapper<CourseStandard> {

    /**
     * 根据课程ID 查询标准课程关联资源
     * @param id
     * @return
     */
    CourseStandard queryCourseStandardWithResourceById(int id);


    /**
     * 标准课程分页查询
     * @param paramsMap
     * @return
     */
    List<CourseStandard> queryCourseStandardList(Map<String, Object> paramsMap);

    /**
     * 标准课程总数查询
     * @param paramsMap
     * @return
     */
    int queryCourseStandardCount(Map<String, Object> paramsMap);

    /**
     * 标准课程 ID NAME list
     * @return
     */
    List<CourseStandard> queryAllCourseStandardIdAndName();
    
    /**
     * 根据name查询
     * @param nameList
     * @return
     */
    List<CourseStandard> queryCourseStandardListByName(List<String> nameList);
}